Module-level declarations

Types

Link copied to clipboard
struct tool_dto

Properties

Link copied to clipboard
val DURABILITY_ATTRIBUTE_NAME: text = "durability"

Functions

Link copied to clipboard
function decrease_tool_durability(account_id: byte_array, tool_name: text, required_tool_category: tool_category, durability_cost: integer): instance
Link copied to clipboard
function get_expendable_tool_id(tool_name: text, account_id: byte_array): byte_array?
Link copied to clipboard
function get_expendable_tools(account_id: byte_array): list<(name: text, durability: integer, amount: integer)>
Link copied to clipboard
function get_stacked_tool_id(tool_name: text, account_id: byte_array): byte_array?
Link copied to clipboard
function get_stacked_tools(account_id: byte_array): list<(name: text, amount: integer)>
Link copied to clipboard
function get_tool_id(tool_name: text, interface: text, account_id: byte_array): byte_array?
Link copied to clipboard
function verify_tool_tier(tool: instance, tier: integer)

Queries

Link copied to clipboard
@mount("tools.get_max_durability") query get_max_durability(): list<(name: text, max_durability: integer)>
Link copied to clipboard
@mount("tools.get_tools") query get_tools(account_id: byte_array): list<tool_dto>

Operations

Link copied to clipboard
@mount("tools.register_tool") operation register_tool(name: text, category: tool_category, tier: integer, max_durability: integer, price: integer)
Link copied to clipboard
@mount("tools.update_max_tool_durability") operation update_max_tool_durability(name: text, max_durability: integer)